import 'package:usbflutter/usb/UsbManager.dart';
import 'package:usbflutter/usb/handler/IDevicceHandler.dart';
import 'package:usbflutter/usb/handler/WeighingDeviceHandler.dart';

class HandlerFactory {

  HandlerFactory._();

  static IDeviceHandler? create(int vendor, int product) {
    /// 地磅的标识
    if (vendor == 6790 && product == 29987) {
      return WeighingDeviceHandler();
    }
    return null;
  }
}
